package com.example.Windturbine.Service;

import com.example.Windturbine.DataObject.MaterialDO;
import com.example.Windturbine.DataObject.TransportDO;
import com.example.Windturbine.Error.BusinessException;
import com.example.Windturbine.Service.Model.MaterialModel;
import com.example.Windturbine.Service.Model.TransportModel;

import java.util.List;

/**
 * @Author 丁永新
 * @Date 2021/12/16
 */
public interface TransportService {
    //获取全部的材料信息
    List<TransportDO> getAll(Integer level) throws BusinessException;

    //添加一条材料信息
    void submitSingle(TransportModel materialModel) throws BusinessException;

    //获取一条材料的详细信息
    TransportModel getDetailById(Integer id) throws BusinessException;

    void deleteById(Integer id) throws BusinessException;

    TransportModel getDetailByName(String name,Integer level) throws BusinessException;
}
